/*
 * �ļ� Messages.java
 * �������� Aug 5, 2009
 *
 */
package com.iman.sumer.util;

import java.util.ArrayList;
import java.util.Enumeration;
import java.util.HashMap;
import java.util.MissingResourceException;
import java.util.ResourceBundle;

/**
 * 
 * @author Nemo
 *
 */
public class LinkMessages {
	private static final String BUNDLE_NAME = "linkURL"; //$NON-NLS-1$

	private static final ResourceBundle RESOURCE_BUNDLE = ResourceBundle.getBundle(BUNDLE_NAME);

	private LinkMessages() {
	}

	public static String getString(String key) {
		try {
			return RESOURCE_BUNDLE.getString(key);
		} catch (MissingResourceException e) {
			return null;
		}
	}
	
	public static ArrayList<String> getKeys(){
		ArrayList<String>  list = new ArrayList<String>();
		Enumeration<String> keys = RESOURCE_BUNDLE.getKeys();
		while(keys.hasMoreElements()){
			list.add(keys.nextElement());
		}
		return list;
	}
}
